package fangzhiyi.business;

/**
 * @author fangzhiyi
 * @version 1.0
 * @date 2025/3/20 15:34
 * @description
 */
public  class Manager extends Employee{
    public double bonus;
    private double monthPrice;

    public double getBonus() {
        return bonus;
    }

    public double getMonthPrice() {
        return monthPrice;
    }

    public Manager(String name, String id, double monthPrice, double bonus) {
        super(name, id);
        this.monthPrice=monthPrice;
        this.bonus = bonus;
    }


    public double price(){
        return monthPrice*12 + bonus;
    }
}
